package com.feilong.modules.model.order.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("order_detail")
public class OrderDetailPO implements Serializable {

    @TableId(type=IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("goods_name")
    private String goodsName;

    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @TableField("postage")
    private BigDecimal postage;

    @TableField("goods_logo")
    private String goodsLogo;

    @TableField("type")
    private String type;

    @TableField("num")
    private Integer num;

    @TableField("create_time")
    private Date createTime;

    @TableField("is_delete")
    private Integer isDelete;

}
